package cn.tedu._01mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class usercontroller
{
    /**
     * @RequestMapping 根据请求映射到对应的控制器方法
     * @return
     */
    @RequestMapping("/v1/user/login")
    @ResponseBody
    public String getUser(String username,String password)
    {
        return "用户列表:"+username+":"+password;
    }
}
